home *** CD-ROM | disk | FTP | other *** search
- Path: news.compuserve.com!newsmaster
- From: 100243.2060@compuserve.com (PXH)
- Newsgroups: comp.lang.c
- Subject: Reading Directory entries
- Date: Mon, 01 Jan 1996 07:40:32 GMT
- Organization: CompuServe Incorporated
- Message-ID: <4c7vm4$6s3@dub-news-svc-3.compuserve.com>
- NNTP-Posting-Host: ad34-150.compuserve.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- Hi,
- I am just starting out in the world of C programming so can someone
- help me with this probably basic question -
-
- How do I read a directory, and determine whether the entries are files
- or directories... I have used readdir, but this doesn't seem to
- differentiate between the two. In short I'm trying to write a program
- that "walks" a directory structure (under dos).
-
- Thanks in advance...
-
- Cheers.
- Piers Harding - New Zealand.
-
-